import { defHttp } from "/@/utils/http/axios"

enum Api {
  page = "/infra-service/dataGroup/page",
  listTree = "/infra-service/dataGroup/listTree",
  list = "/infra-service/dataGroup/list",
}

export function pageDataGroup(params) {
  return defHttp.get({ url: Api.page, params })
}

export function listDataGroupTree(params) {
  return defHttp.get({ url: Api.listTree, params })
}

export function listDataGroup(params) {
  return defHttp.get({ url: Api.list, params })
}
